package com.ipzoe.app.core.response;

import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
@EqualsAndHashCode(callSuper=true)
public class ErrorApiResponseData<T> extends ApiResponseData<T> {

	private static final long serialVersionUID = 1L;
	
	/**
     * 异常的具体类名称
     */
    private String exceptionClazz;

    public ErrorApiResponseData(String message) {
        super(false, ApiResponseData.DEFAULT_ERROR_CODE, message, null);
    }

    public ErrorApiResponseData(Integer code, String message) {
        super(false, code, message, null);
    }

    public ErrorApiResponseData(String message, T object) {
        super(false, ApiResponseData.DEFAULT_ERROR_CODE, message, object);
    }

    public ErrorApiResponseData(Integer code, String message, T object) {
        super(false, code, message, object);
    }
}
